package com.john.utils.enums;

/**
 * 操作状态
 * 
 * @author ruoyi
 */
public enum ResultStatus
{

    SUCCESS(0,"操作成功"),

    /**分页参数效验**/
    PAGENUM(-6,"当前页pageNum必须是大于0或小于总页数的整数"),
    PAGESIZE(-7,"当前页数据总量pageSize最小不能小于20条最大不能超过"+PageEnums.PMAXPAGESIZE.getCode()+"条"),
    HANDS(-9,"交替值hands无效或hands值被更改");
    ;

    private Integer code;
    private String msg;

    private ResultStatus(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode(){
        return code;
    }

    public String getMsg(){
        return msg;
    }

}
